//
//  JSDownloadManager.h
//  QMUI_TEST
//
//  Created by mac on 17/4/6.
//  Copyright © 2017年 Apple. All rights reserved.
//

#import <Foundation/Foundation.h>
@class JSDownloadRequest;
@interface JSDownloadManager : NSObject
/**
 * 正在进行的任务
 */
@property (nonatomic, strong, readonly) NSArray *tasks;

+ (JSDownloadManager *)downloadManagerInstance;
- (JSDownloadRequest *)requestForURL:(NSString *)url;
- (void)startRequestTask:(JSDownloadRequest *)request;
- (void)pauseRequest:(JSDownloadRequest *)request;
- (void)cancelRequest:(JSDownloadRequest *)request;
@end
